package com.example.demo.mapper;

import com.example.demo.entity.Food;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface FoodMapper {
    List<Food> findFood();

    List<Food> findToLike(@Param("fname") String fname);

    int addFood(Map<String,String> map);

    int updateFood(Map<String,String> map);

    int delFood(Integer fid);
}
